import java.io.*;

class FileTest {
    public static void main ( String[] args ) {
        String  s1 = "D:/wy1.txt", line;
        try {
            BufferedReader B1 = new BufferedReader(new FileReader(s1) );
            line = B1.readLine();
            while (  line!=null   ) {
                System.out.println( line );
                line =B1.readLine();
            }
            B1.close();
        }
        catch (IOException e) {
            System.out.println("Problem reading " +s1 );
        }
    }
}
